<?php
namespace api\scenario;

if (!defined('GAME'))
{
	exit;
}

class quest implements \IteratorAggregate, \Countable {
	private $_name;
	private $_step;
	private $_currentStep;
	
	public function __construct()
	{
		$this->_step = new \SplObjectStorage();
		$_currentStep = 0;
	}
	
	public function attachStep(api\scenario\step $step) 
	{
		$this->_step->attach($step);
		return $this;
	}
	
	public function detachStep(api\scenario\step $step) 
	{
		$this->_step->detach($step);
		return $this;
	}	
	
	public function getIterator()
	{
		return $this->_step;
	}
	
	public function count()
	{
		return count($this->_step);
	}	

}
